.redhat-ci.yml: add clang
authorJonathan Lebon <jlebon@redhat.com>
Thu, 27 Oct 2016 16:03:04 +0000 (12:03 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 27 Oct 2016 18:12:05 +0000 (18:12 +0000)
Clang has better detection for unused vars when using auto cleanup
functions. We should eventually just fold this back into the first
testsuite. But let's just turn it on for now, at least until it's
satisfied with the whole codebase.

Closes: #549
Approved by: cgwalters

.redhat-ci.yml

index 1956cb300b10c7e69a9fb8ad07b4d9f6c4052ede..da69f97a6b99f8f5d739104bb73d7dc4fc01825f 100644 (file)
@@ -23,3 +23,22 @@ timeout: 30m
 
 artifacts:
     - test-suite.log
+
+---
+
+inherit: true
+
+packages:
+  - clang
+
+tests:
+    - sh autogen.sh
+        --prefix=/usr
+        --libdir=/usr/lib64
+        --enable-installed-tests
+        --enable-gtk-doc
+    - make -j2 CC=clang CFLAGS='-Werror=unused-variable'
+
+context: Clang
+
+artifacts: